<template>
  <div class="cartItem">
    <div class="cartItem-left">
      {{title}}
    </div>
    <div class="cartItem-right">
      <span>{{remark}}</span>
      <i class="fa fa-angle-right"></i>
    </div>

  </div>
</template>

<script>
export default {
  name: 'CartItem',
  props: {
    title: String,
    remark: String
  }
}
</script>

<style lang="less" scoped>
.cartItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  color: #333;
  padding: 20px 5px;
  border-bottom: 1px solid #ccc;
  .cartItem-left {
    font-weight: 700;
    font-size: 18px;
  }
  .cartItem-right {
    display: flex;
    align-items: center;
    color: #666;
    margin-right: 10px;
    i {
      margin-left: 5px;
    }
    span {
      display: inline-block;
      width: 200px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: center;
    }
  }
}
</style>
